]> dgit.raspbian.org Git - graphicsmagick.git/commitdiff
compile magick/semaphore.c with -O0 on ppc64el
authorLaszlo Boszormenyi (GCS) <gcs@debian.org>
Sun, 11 Oct 2026 07:14:32 +0000 (09:14 +0200)
committerLaszlo Boszormenyi (GCS) <gcs@debian.org>
Sun, 11 Oct 2026 07:14:32 +0000 (09:14 +0200)
Bug-Debian: https://bugs.debian.org/837719
Forwarded: no
Last-Update: 2026-10-11

Gbp-Pq: Name semaphore_O0_ppc64el.patch

magick/semaphore.c

index 072a68ef30a425269b40c52748c41f3ada67ad65..2cccfdd2ab533e45c49b21addef5f0cae5233a6a 100644 (file)
 #  define USE_OPENMP_LOCKS 1
 #endif
 
+#if defined(_ARCH_PPC64)
+# pragma GCC push_options
+# pragma GCC optimize("O0")
+#endif
+
 #if defined(USE_PTHREAD_LOCKS)
 #  include <pthread.h>
 #  define PTHREAD_MUTEX_DESTROY(semaphore_mutex)                        \
@@ -650,3 +655,7 @@ MagickExport void UnlockSemaphoreInfo(SemaphoreInfo *semaphore_info)
   ARG_NOT_USED(semaphore_info);
 #endif
 }
+
+#if defined(_ARCH_PPC64)
+# pragma GCC pop_options
+#endif